﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WRJClient.Model
{
    public class StaffModel : BaseModel
    {
        public string Name { get; set; }
        public string Title { get; set; }
        public string Tel { get; set; }
        public string Image { get; set; }
        public int Age { get; set; }
        public int Gender { get; set; }
        public string ImageUrl
        {
            get
            {
                string url = "/WRJClient;component/Resource/Image/head.png";
                if (!string.IsNullOrEmpty(Image))
                {
                    url = string.Format("http://{0}:{1}/{2}", Properties.Settings.Default.ServerIp, Properties.Settings.Default.ServerPort, Image);
                }
                return url;
            }
        }
    }
}
